package com.xyz.eduservice.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户答题记录
 * </p>
 *
 * @author zsr
 * @since 2021-06-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("szy_edu_question_answer")
@Schema(description="用户答题记录")
public class EduQuestionAnswer implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "答题记录ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @Schema(description = "试题ID")
    private String questionId;

    @Schema(description = "用户ID")
    private String memberId;

    @Schema(description = "用户答案")
    private String userAnswer;

    @Schema(description = "是否正确：0-错误 1-正确")
    private Boolean isCorrect;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

}